package com.grass.cropTradingCenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.grass.cropTradingCenter.common.PageResult;
import com.grass.cropTradingCenter.pojo.dto.admin.HomeData;
import com.grass.cropTradingCenter.pojo.entity.*;
import com.grass.cropTradingCenter.pojo.vo.admin.AdminUserVo;
import com.grass.cropTradingCenter.pojo.vo.admin.CommitPageVo;
import com.grass.cropTradingCenter.pojo.vo.admin.ShopAuthListVo;
import com.grass.cropTradingCenter.pojo.vo.admin.UpdateAuthStateVo;
import com.grass.cropTradingCenter.pojo.vo.common.PageVo;
import com.grass.cropTradingCenter.pojo.vo.common.UpdateStateVo;
import com.grass.cropTradingCenter.pojo.vo.shop.GoodsListVo;
import com.grass.cropTradingCenter.pojo.vo.user.LoginVo;

import java.util.List;

/**
* @author zipan
* @description 针对表【admin_user】的数据库操作Service
* @createDate 2024-01-23 19:41:54
*/
public interface AdminUserService extends IService<AdminUser> {

    String login(LoginVo vo);

    AdminUser getUserInfo();

    PageResult<AdminUser> getAdminList(PageVo vo);

    void addOrUpdateAdmin(AdminUserVo vo);

    void deleteAdmin(AdminUserVo vo);

    PageResult<ShopAuth> shopAuthList(ShopAuthListVo vo);

    void updateAuthState(UpdateAuthStateVo vo);

    void updateGoodsCheckFlag(UpdateStateVo vo);

    PageResult<Goods> goodsList(GoodsListVo vo);

    PageResult<UserCommit> commitList(CommitPageVo vo);

    void updateCommitCheckFlag(UpdateStateVo vo);

    List<MiniShop> shopList();

    HomeData homeData();
}
